/*
Copyright (c) 2008, www.igorcosta.com

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * */
package br.absolutobrasil.utils
{

/**
	 * Classe util para medição de pesos e medidas Brasileiras
	 * Esta classe foi baseada nas seguintes medidas
	 * 
	 * Medidas de Volume
	 * 1 milímetro cúbico (mm3) 	0,000000001m3  .
	 * 1 centímetro cúbico (cm3) 	0,000001m3 .
	 * 1 decímetro cúbico (dm3) 	0,001m3 (1 litro) .
	 * 1 metro cúbico (m3) 	1.000dm3 (1.000 litros) .
	 * 
*/
	public class VolumeUtil
	{
		include "../core/Versao.as";	
						public function VolumeUtil() {
							
						}
						
						public static function mm3ToM3(valor:Number):Number
						{
												valor = valor * 0.000000001;
												return valor;
						}
						public static function m3ToMm3(valor:Number):Number
						{
												valor = valor /0.000000001;
												return valor;
						}
						public static function cm3ToM3(valor:Number):Number
						{
												valor = valor * 0.000001;
												return valor;
						}
						public static function m3ToCm3(valor:Number):Number
						{
											valor = valor / 0.000001;
											return valor;
						}
						public static function dm3ToM3(valor:Number):Number
						{		
											valor = valor * 0.001;
											return valor;
						}
						public static function m3ToDm3(valor:Number):Number
						{
										valor = valor * 1000;
										return valor;
						}
						public static function litroToMililitro(valor:Number):Number
						{
												valor = valor * 1000;
												return valor;
						}
	}
}